import Http from "../utils/http";

export const login = async (data: Object) => {
    return await Http.post('/wxlogin', data);
}

export const getNote = async (data: Object) => {
    return await Http.get('/note/pullNote', data);
}

export const pushNote = async (data: Object) => {
    return await Http.post('/note/pushNote', data);
}

export const getMyPullRecord = async (data?: Object) => {
    return await Http.get('/note/getMyPullRecord', data);
}

export const getMyPushRecord = async (data?: Object) => {
    return await Http.get('/note/getMyPushRecord', data);
}

export const getNoteCount = async (data?: Object) => {
    return await Http.get('/note/getNoteCount', data);
}

export const feedBack = async (data: Object) => {
    return await Http.post('/feedback', data);
}

export const getVipNoteList = async (data?: Object) => {
    return await Http.post('/vip/getNoteList', data);
}

export const getUserInfoByCode = async (data: Object) => {
    return await Http.post('/wechat/login', data);
}

export const getJSSDKSignature = async (data: Object) => {
    return await Http.post('/wechat/getJSSDKSignature', data);
}
// 获取微信支付参数
export const getPayData = async (data: Object) => {
    return await Http.post('/getPaySign', data);
}

// 获取我的vip信息
export const getVipInfo = async (data?: Object) => {
    return await Http.get('/getVipInfo', data);
}

// 生成我的分享二维码
export const createShareCode = async (data?: Object) => {
    return await Http.get('/createShareCode', data);
}

// 根据纸条id获取纸条信息
export const getNoteDetail = async (data?: Object) => {
    return await Http.get('/getNoteDetail', data);
}

// 根据纸条id推荐纸条
export const noteRec = async (data?: Object) => {
    return await Http.get('/noteRec', data);
}




